#{extends 'main.html' /}
#{set title:'Viewing submission' /}

#{set 'moreScripts'}
<script type="text/javascript" src="/public/javascripts/shCore.js"></script>
#{list files}
<script type="text/javascript" src="/public/javascripts/shBrush${_.language}.js"></script>
#{/list}
#{/set}
#{set 'moreStyles'}
<link href="@{'/public/stylesheets/shCore.css'}" rel="stylesheet" type="text/css" />
<link type="text/css" rel="Stylesheet" href="@{'/public/stylesheets/shThemeDefault.css'}"/>
#{/set}
<p>Submission by ${sub.student.username}, made at <span class="formatTime">${sub.time}</span></p>
#{list items:files, as:'file'}
	<script type="syntaxhighlighter" class="brush:${file.language.toLowerCase()}"><![CDATA[
	${file.content}
	]]></script>
#{/list}

<!-- Finally, to actually run the highlighter, you need to include this JS on your page -->
<script type="text/javascript">
     SyntaxHighlighter.all()
</script>